function Cat(name,color){
    this.name=name
    this.color=name
}

Cat.prototype={
    sayMiao(){
        console.log('喵喵喵');
    }
}

Object.prototype.sayhello=function(){
    console.log('hello');
}

console.log(Object.prototype,'//////');

var xmm=new Cat('cmiaomiao','white');
xmm.sayMiao();
console.log(xmm.__proto__.__proto__.__proto__);
console.log(xmm.hasOwnProperty('name'),xmm.hasOwnProperty('sayMiao'));